From ealejandro101 at hotmail.com Tue Aug 2 14:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue Aug 2 14:23:05 2005 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://pixie.strangenoises.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment.htm From mrp at netpages.de Tue Aug 2 14:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue Aug 2 14:28:59 2005 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 20:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue Aug 2 20:50:52 2005 Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi@qbang.org From trevor at opecsystem.com Mon Aug 8 11:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon Aug 8 11:10:49 2005 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor@opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pixie.strangenoises.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0001.htm From ealejandro101 at hotmail.com Mon Aug 8 14:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon Aug 8 14:08:39 2005 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://pixie.strangenoises.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment.htm From ong at neomancer.net Mon Aug 8 16:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon Aug 8 16:57:13 2005 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 17:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon Aug 8 17:57:17 2005 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor@opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces@mail.electronpusher.org [mailto:rxtx-bounces@mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx@mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor@opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx@mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pixie.strangenoises.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0001.htm From Daniel.Eisenhut at med.ge.com Mon Aug 8 19:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon Aug 8 19:46:31 2005 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces@mail.electronpusher.org [mailto:rxtx-bounces@mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx@mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor@opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces@mail.electronpusher.org [mailto:rxtx-bounces@mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx@mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor@opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx@mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pixie.strangenoises.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment.htm From trevor at opecsystem.com Mon Aug 8 20:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon Aug 8 20:37:42 2005 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor@opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces@mail.electronpusher.org [mailto:rxtx-bounces@mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces@mail.electronpusher.org [mailto:rxtx-bounces@mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx@mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor@opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces@mail.electronpusher.org [mailto:rxtx-bounces@mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx@mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor@opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx@mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pixie.strangenoises.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0001.htm From jijo.vincent at gmail.com Fri Aug 19 09:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri Aug 19 09:23:52 2005 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 20:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed Aug 24 20:48:43 2005 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 15:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri Aug 26 15:21:13 2005 Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi@qbang.org From slavelle at atcorp.com Fri Aug 26 15:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri Aug 26 15:57:47 2005 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 12:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri Sep 9 22:25:47 2005 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pixie.local/pipermail/rxtx/attachments/20050820/7fa955cd/attachment.html From meet_jijo at yahoo.com Wed Aug 17 09:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Fri Sep 9 22:25:56 2005 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pixie.local/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment.htm From philippe.barthelemy at gmail.com Fri Aug 26 08:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri Sep 9 22:26:02 2005 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://pixie.local/pipermail/rxtx/attachments/20050826/557fc88b/attachment.htm From andy.dalton at gmail.com Sun Aug 28 04:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Fri Sep 9 22:26:15 2005 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0395.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0395.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0395.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0395.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0395.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0395.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0395.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0395.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0395.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0396.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0396.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0396.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0396.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0396.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0396.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0396.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0396.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0396.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0397.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0397.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0397.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0397.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0397.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0397.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0397.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0397.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0397.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0398.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0398.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0398.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0398.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0398.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0398.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0398.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0398.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0398.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0399.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0399.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0399.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0399.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0399.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0399.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0399.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0399.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0399.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0400.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0400.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0400.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0400.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0400.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0400.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0400.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0400.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0400.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0401.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0401.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0401.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0401.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0401.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0401.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0401.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0401.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0401.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0402.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0402.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0402.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0402.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0402.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0402.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0402.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0402.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0402.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0403.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0403.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0403.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0403.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0403.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0403.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0403.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0403.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0403.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0404.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0404.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0404.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0404.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0404.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0404.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0404.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0404.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0404.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0001.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0001.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0001.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0001.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0001.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0001.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0001.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0001.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0001.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0002.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0002.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0002.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0002.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0002.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0002.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0002.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0002.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0002.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0003.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0003.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0003.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0003.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0003.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0003.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0003.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0003.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0003.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0004.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0004.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0004.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0004.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0004.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0004.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0004.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0004.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0004.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0005.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0005.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0005.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0005.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0005.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0005.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0005.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0005.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0005.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0006.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0006.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0006.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0006.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0006.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0006.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0006.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0006.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0006.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0007.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0007.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0007.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0007.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0007.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0007.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0007.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0007.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0007.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0008.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0008.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0008.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0008.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0008.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0008.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0008.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0008.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0008.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0009.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0009.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0009.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0009.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0009.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0009.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0009.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0009.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0009.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0010.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0010.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0010.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0010.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0010.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0010.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0010.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0010.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0010.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0001.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0001.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0001.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0001.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0001.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0001.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0001.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0001.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0001.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0002.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0002.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0002.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0002.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0002.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0002.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0002.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0002.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0002.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0003.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0003.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0003.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0003.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0003.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0003.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0003.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0003.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0003.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0004.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0004.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0004.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0004.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0004.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0004.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0004.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0004.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0004.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0005.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0005.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0005.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0005.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0005.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0005.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0005.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0005.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0005.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0006.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0006.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0006.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0006.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0006.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0006.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0006.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0006.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0006.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0007.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0007.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0007.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0007.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0007.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0007.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0007.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0007.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0007.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0008.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0008.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0008.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0008.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0008.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0008.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0008.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0008.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0008.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0009.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0009.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0009.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0009.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0009.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0009.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0009.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0009.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0009.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0010.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0010.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0010.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0010.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0010.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0010.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0010.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0010.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0010.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0001.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0001.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0001.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0001.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0001.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0001.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0001.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0001.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0001.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0002.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0002.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0002.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0002.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0002.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0002.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0002.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0002.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0002.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0003.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0003.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0003.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0003.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0003.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0003.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0003.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0003.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0003.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0004.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0004.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0004.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0004.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0004.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0004.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0004.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0004.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0004.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0005.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0005.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0005.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0005.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0005.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0005.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0005.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0005.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0005.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0006.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0006.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0006.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0006.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0006.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0006.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0006.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0006.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0006.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0007.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0007.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0007.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0007.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0007.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0007.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0007.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0007.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0007.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0008.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0008.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0008.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0008.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0008.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0008.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0008.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0008.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0008.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0009.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0009.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0009.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0009.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0009.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0009.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0009.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0009.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0009.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0010.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0010.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0010.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0010.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0010.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0010.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0010.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0010.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0010.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0011.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0011.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0011.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0011.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0011.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0011.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0011.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0011.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0011.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0012.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0012.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0012.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0012.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0012.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0012.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0012.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0012.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0012.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0013.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0013.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0013.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0013.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0013.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0013.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0013.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0013.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0013.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0014.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0014.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0014.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0014.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0014.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0014.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0014.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0014.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0014.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0015.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0015.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0015.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0015.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0015.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0015.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0015.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0015.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0015.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0016.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0016.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0016.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0016.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0016.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0016.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0016.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0016.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0016.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0017.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0017.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0017.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0017.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0017.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0017.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0017.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0017.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0017.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0018.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0018.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0018.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0018.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0018.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0018.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0018.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0018.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0018.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0019.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0019.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0019.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0019.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0019.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0019.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0019.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0019.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0019.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0020.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0020.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0020.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0020.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0020.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0020.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0020.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0020.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0020.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0021.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0021.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0021.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0021.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0021.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0021.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0021.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0021.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0021.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0022.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0022.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0022.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0022.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0022.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0022.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0022.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0022.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0022.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0023.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0023.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0023.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0023.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0023.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0023.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0023.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0023.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0023.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0024.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0024.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0024.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0024.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0024.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0024.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0024.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0024.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0024.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0025.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0025.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0025.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0025.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0025.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0025.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0025.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0025.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0025.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0026.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0026.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0026.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0026.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0026.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0026.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0026.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0026.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0026.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0027.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0027.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0027.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0027.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0027.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0027.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0027.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0027.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0027.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0028.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0028.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0028.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0028.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0028.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0028.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0028.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0028.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0028.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0029.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0029.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0029.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0029.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0029.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0029.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0029.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0029.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0029.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0030.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0030.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0030.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0030.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0030.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0030.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0030.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0030.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0030.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0031.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0031.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0031.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0031.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0031.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0031.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0031.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0031.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0031.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0032.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0032.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0032.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0032.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0032.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0032.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0032.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0032.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0032.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0033.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0033.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0033.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0033.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0033.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0033.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0033.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0033.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0033.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0034.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0034.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0034.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0034.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0034.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0034.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0034.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0034.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0034.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0035.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0035.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0035.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0035.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0035.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0035.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0035.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0035.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0035.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0036.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0036.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0036.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0036.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0036.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0036.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0036.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0036.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0036.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0037.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0037.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0037.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0037.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0037.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0037.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0037.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0037.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0037.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0038.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0038.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0038.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0038.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0038.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0038.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0038.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0038.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0038.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0039.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0039.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0039.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0039.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0039.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0039.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0039.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0039.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0039.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0040.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0040.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0040.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0040.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0040.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0040.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0040.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0040.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0040.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0041.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0041.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0041.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0041.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0041.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0041.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0041.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0041.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0041.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0042.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0042.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0042.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0042.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0042.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0042.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0042.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0042.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0042.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0043.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0043.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0043.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0043.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0043.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0043.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0043.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0043.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0043.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0044.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0044.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0044.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0044.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0044.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0044.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0044.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0044.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0044.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0045.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0045.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0045.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0045.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0045.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0045.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0045.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0045.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0045.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0046.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0046.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0046.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0046.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0046.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0046.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0046.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0046.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0046.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0047.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0047.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0047.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0047.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0047.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0047.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0047.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0047.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0047.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0048.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0048.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0048.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0048.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0048.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0048.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0048.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0048.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0048.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0049.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0049.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0049.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0049.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0049.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0049.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0049.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0049.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0049.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0050.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0050.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0050.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0050.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0050.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0050.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0050.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0050.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0050.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0051.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0051.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0051.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0051.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0051.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0051.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0051.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0051.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0051.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0052.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0052.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0052.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0052.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0052.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0052.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0052.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0052.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0052.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0053.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0053.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0053.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0053.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0053.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0053.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0053.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0053.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0053.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0054.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0054.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0054.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0054.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0054.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0054.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0054.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0054.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0054.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0055.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0055.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0055.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0055.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0055.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0055.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0055.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0055.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0055.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0056.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0056.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0056.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0056.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0056.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0056.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0056.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0056.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0056.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0057.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0057.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0057.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0057.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0057.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0057.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0057.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0057.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0057.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0058.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0058.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0058.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0058.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0058.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0058.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0058.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0058.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0058.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0059.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0059.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0059.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0059.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0059.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0059.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0059.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0059.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0059.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0060.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0060.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0060.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0060.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0060.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0060.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0060.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0060.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0060.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0061.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0061.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0061.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0061.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0061.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0061.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0061.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0061.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0061.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0062.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0062.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0062.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0062.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0062.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0062.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0062.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0062.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0062.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0063.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0063.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0063.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0063.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0063.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0063.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0063.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0063.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0063.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0064.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0064.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0064.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0064.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0064.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0064.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0064.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0064.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0064.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0065.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0065.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0065.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0065.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0065.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0065.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0065.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0065.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0065.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0066.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0066.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0066.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0066.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0066.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0066.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0066.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0066.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0066.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0067.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0067.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0067.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0067.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0067.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0067.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0067.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0067.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0067.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0068.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0068.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0068.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0068.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0068.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0068.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0068.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0068.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0068.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0069.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0069.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0069.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0069.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0069.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0069.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0069.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0069.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0069.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0070.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0070.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0070.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0070.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0070.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0070.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0070.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0070.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0070.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0071.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0071.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0071.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0071.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0071.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0071.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0071.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0071.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0071.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0072.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0072.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0072.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0072.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0072.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0072.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0072.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0072.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0072.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0073.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0073.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0073.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0073.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0073.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0073.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0073.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0073.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0073.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0074.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0074.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0074.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0074.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0074.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0074.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0074.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0074.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0074.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0075.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0075.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0075.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0075.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0075.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0075.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0075.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0075.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0075.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0076.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0076.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0076.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0076.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0076.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0076.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0076.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0076.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0076.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0077.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0077.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0077.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0077.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0077.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0077.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0077.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0077.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0077.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0078.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0078.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0078.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0078.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0078.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0078.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0078.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0078.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0078.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0079.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0079.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0079.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0079.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0079.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0079.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0079.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0079.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0079.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0080.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0080.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0080.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0080.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0080.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0080.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0080.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0080.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0080.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0081.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0081.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0081.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0081.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0081.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0081.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0081.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0081.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0081.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0082.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0082.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0082.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0082.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0082.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0082.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0082.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0082.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0082.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0083.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0083.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0083.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0083.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0083.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0083.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0083.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0083.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0083.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0084.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0084.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0084.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0084.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0084.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0084.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0084.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0084.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0084.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0085.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0085.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0085.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0085.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0085.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0085.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0085.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0085.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0085.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0086.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0086.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0086.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0086.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0086.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0086.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0086.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0086.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0086.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0087.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0087.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0087.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0087.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0087.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0087.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0087.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0087.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0087.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0088.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0088.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0088.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0088.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0088.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0088.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0088.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0088.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0088.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0089.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0089.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0089.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0089.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0089.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0089.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0089.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0089.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0089.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0090.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0090.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0090.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0090.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0090.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0090.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0090.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0090.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0090.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0091.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0091.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0091.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0091.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0091.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0091.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0091.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0091.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0091.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0092.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0092.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0092.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0092.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0092.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0092.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0092.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0092.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0092.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0093.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0093.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0093.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0093.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0093.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0093.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0093.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0093.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0093.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0094.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0094.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0094.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0094.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0094.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0094.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0094.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0094.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0094.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0095.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0095.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0095.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0095.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0095.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0095.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0095.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0095.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0095.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0096.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0096.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0096.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0096.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0096.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0096.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0096.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0096.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0096.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0097.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0097.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0097.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0097.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0097.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0097.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0097.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0097.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0097.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0098.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0098.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0098.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0098.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0098.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0098.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0098.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0098.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0098.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0099.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0099.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0099.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0099.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0099.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0099.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0099.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0099.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0099.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0100.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0100.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0100.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0100.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0100.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0100.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0100.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0100.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0100.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0101.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0101.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0101.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0101.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0101.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0101.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0101.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0101.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0101.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0102.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0102.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0102.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0102.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0102.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0102.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0102.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0102.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0102.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0103.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0103.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0103.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0103.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0103.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0103.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0103.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0103.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0103.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0104.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0104.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0104.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0104.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0104.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0104.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0104.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0104.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0104.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0105.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0105.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0105.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0105.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0105.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0105.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0105.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0105.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0105.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0106.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0106.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0106.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0106.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0106.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0106.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0106.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0106.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0106.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0107.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0107.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0107.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0107.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0107.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0107.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0107.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0107.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0107.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0108.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0108.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0108.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0108.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0108.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0108.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0108.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0108.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0108.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0109.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0109.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0109.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0109.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0109.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0109.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0109.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0109.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0109.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0110.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0110.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0110.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0110.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0110.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0110.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0110.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0110.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0110.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0111.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0111.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0111.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0111.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0111.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0111.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0111.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0111.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0111.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0112.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0112.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0112.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0112.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0112.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0112.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0112.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0112.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0112.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0113.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0113.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0113.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0113.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0113.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0113.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0113.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0113.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0113.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0114.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0114.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0114.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0114.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0114.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0114.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0114.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0114.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0114.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0115.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0115.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0115.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0115.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0115.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0115.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0115.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0115.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0115.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0116.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0116.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0116.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0116.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0116.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0116.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0116.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0116.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0116.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0117.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0117.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0117.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0117.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0117.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0117.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0117.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0117.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0117.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0118.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0118.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0118.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0118.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0118.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0118.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0118.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0118.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0118.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0119.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0119.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0119.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0119.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0119.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0119.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0119.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0119.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0119.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0120.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0120.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0120.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0120.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0120.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0120.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0120.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0120.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0120.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0121.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0121.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0121.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0121.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0121.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0121.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0121.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0121.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0121.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0122.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0122.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0122.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0122.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0122.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0122.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0122.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0122.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0122.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0123.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0123.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0123.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0123.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0123.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0123.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0123.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0123.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0123.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0124.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0124.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0124.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0124.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0124.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0124.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0124.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0124.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0124.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0125.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0125.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0125.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0125.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0125.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0125.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0125.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0125.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0125.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0126.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0126.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0126.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0126.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0126.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0126.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0126.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0126.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0126.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0127.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0127.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0127.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0127.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0127.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0127.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0127.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0127.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0127.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0128.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0128.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0128.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0128.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0128.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0128.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0128.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0128.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0128.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0129.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0129.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0129.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0129.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0129.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0129.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0129.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0129.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0129.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0130.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0130.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0130.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0130.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0130.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0130.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0130.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0130.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0130.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0131.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0131.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0131.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0131.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0131.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0131.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0131.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0131.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0131.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0132.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0132.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0132.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0132.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0132.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0132.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0132.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0132.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0132.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0133.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0133.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0133.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0133.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0133.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0133.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0133.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0133.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0133.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0134.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0134.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0134.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0134.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0134.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0134.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0134.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0134.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0134.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0135.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0135.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0135.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0135.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0135.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0135.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0135.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0135.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0135.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0136.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0136.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0136.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0136.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0136.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0136.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0136.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0136.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0136.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0137.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0137.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0137.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0137.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0137.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0137.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0137.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0137.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0137.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0138.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0138.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0138.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0138.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0138.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0138.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0138.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0138.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0138.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0139.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0139.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0139.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0139.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0139.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0139.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0139.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0139.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0139.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0140.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0140.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0140.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0140.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0140.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0140.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0140.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0140.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0140.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0141.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0141.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0141.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0141.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0141.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0141.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0141.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0141.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0141.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0142.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0142.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0142.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0142.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0142.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0142.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0142.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0142.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0142.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0143.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0143.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0143.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0143.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0143.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0143.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0143.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0143.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0143.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0144.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0144.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0144.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0144.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0144.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0144.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0144.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0144.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0144.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0145.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0145.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0145.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0145.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0145.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0145.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0145.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0145.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0145.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0146.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0146.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0146.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0146.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0146.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0146.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0146.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0146.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0146.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0147.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0147.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0147.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0147.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0147.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0147.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0147.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0147.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0147.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0148.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0148.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0148.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0148.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0148.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0148.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0148.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0148.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0148.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0149.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0149.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0149.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0149.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0149.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0149.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0149.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0149.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0149.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0150.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0150.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0150.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0150.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0150.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0150.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0150.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0150.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0150.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0151.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0151.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0151.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0151.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0151.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0151.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0151.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0151.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0151.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0152.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0152.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0152.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0152.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0152.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0152.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0152.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0152.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0152.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0153.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0153.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0153.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0153.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0153.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0153.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0153.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0153.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0153.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0154.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0154.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0154.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0154.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0154.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0154.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0154.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0154.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0154.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0155.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0155.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0155.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0155.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0155.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0155.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0155.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0155.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0155.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0156.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0156.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0156.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0156.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0156.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0156.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0156.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0156.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0156.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0157.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0157.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0157.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0157.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0157.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0157.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0157.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0157.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0157.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0158.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0158.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0158.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0158.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0158.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0158.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0158.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0158.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0158.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0159.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0159.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0159.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0159.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0159.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0159.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0159.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0159.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0159.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0160.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0160.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0160.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0160.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0160.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0160.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0160.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0160.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0160.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0161.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0161.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0161.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0161.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0161.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0161.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0161.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0161.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0161.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0162.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0162.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0162.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0162.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0162.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0162.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0162.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0162.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0162.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0163.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0163.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0163.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0163.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0163.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0163.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0163.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0163.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0163.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0164.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0164.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0164.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0164.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0164.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0164.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0164.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0164.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0164.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0165.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0165.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0165.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0165.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0165.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0165.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0165.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0165.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0165.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0166.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0166.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0166.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0166.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0166.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0166.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0166.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0166.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0166.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0167.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0167.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0167.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0167.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0167.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0167.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0167.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0167.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0167.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0168.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0168.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0168.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0168.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0168.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0168.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0168.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0168.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0168.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0169.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0169.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0169.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0169.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0169.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0169.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0169.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0169.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0169.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0170.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0170.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0170.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0170.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0170.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0170.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0170.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0170.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0170.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0171.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0171.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0171.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0171.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0171.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0171.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0171.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0171.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0171.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0172.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0172.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0172.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0172.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0172.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0172.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0172.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0172.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0172.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0173.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0173.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0173.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0173.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0173.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0173.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0173.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0173.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0173.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0174.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0174.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0174.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0174.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0174.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0174.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0174.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0174.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0174.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0175.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0175.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0175.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0175.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0175.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0175.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0175.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0175.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0175.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0176.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0176.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0176.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0176.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0176.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0176.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0176.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0176.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0176.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0177.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0177.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0177.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0177.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0177.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0177.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0177.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0177.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0177.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0178.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0178.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0178.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0178.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0178.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0178.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0178.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0178.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0178.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0179.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0179.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0179.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0179.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0179.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0179.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0179.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0179.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0179.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0180.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0180.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0180.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0180.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0180.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0180.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0180.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0180.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0180.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0181.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0181.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0181.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0181.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0181.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0181.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0181.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0181.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0181.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0182.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0182.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0182.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0182.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0182.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0182.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0182.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0182.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0182.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0183.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0183.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0183.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0183.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0183.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0183.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0183.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0183.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0183.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0184.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0184.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0184.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0184.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0184.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0184.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0184.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0184.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0184.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0185.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0185.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0185.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0185.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0185.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0185.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0185.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0185.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0185.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0186.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0186.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0186.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0186.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0186.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0186.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0186.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0186.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0186.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0187.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0187.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0187.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0187.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0187.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0187.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0187.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0187.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0187.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0188.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0188.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0188.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0188.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0188.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0188.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0188.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0188.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0188.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0189.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0189.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0189.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0189.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0189.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0189.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0189.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0189.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0189.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0190.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0190.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0190.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0190.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0190.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0190.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0190.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0190.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0190.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0191.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0191.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0191.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0191.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0191.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0191.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0191.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0191.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0191.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0192.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0192.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0192.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0192.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0192.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0192.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0192.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0192.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0192.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0193.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0193.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0193.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0193.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0193.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0193.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0193.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0193.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0193.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0194.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0194.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0194.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0194.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0194.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0194.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0194.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0194.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0194.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0195.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0195.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0195.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0195.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0195.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0195.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0195.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0195.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0195.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0196.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0196.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0196.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0196.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0196.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0196.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0196.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0196.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0196.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0197.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0197.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0197.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0197.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0197.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0197.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0197.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0197.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0197.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0198.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0198.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0198.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0198.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0198.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0198.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0198.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0198.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0198.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0199.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0199.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0199.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0199.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0199.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0199.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0199.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0199.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0199.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0200.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0200.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0200.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0200.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0200.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0200.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0200.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0200.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0200.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0201.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0201.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0201.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0201.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0201.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0201.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0201.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0201.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0201.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0202.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0202.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0202.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0202.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0202.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0202.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0202.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0202.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0202.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0203.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0203.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0203.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0203.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0203.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0203.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0203.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0203.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0203.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0204.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0204.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0204.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0204.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0204.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0204.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0204.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0204.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0204.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0205.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0205.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0205.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0205.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0205.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0205.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0205.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0205.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0205.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0206.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0206.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0206.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0206.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0206.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0206.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0206.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0206.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0206.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0207.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0207.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0207.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0207.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0207.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0207.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0207.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0207.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0207.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0208.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0208.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0208.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0208.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0208.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0208.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0208.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0208.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0208.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0209.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0209.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0209.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0209.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0209.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0209.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0209.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0209.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0209.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0210.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0210.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0210.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0210.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0210.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0210.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0210.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0210.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0210.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0211.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0211.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0211.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0211.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0211.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0211.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0211.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0211.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0211.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0212.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0212.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0212.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0212.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0212.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0212.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0212.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0212.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0212.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0213.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0213.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0213.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0213.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0213.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0213.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0213.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0213.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0213.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0214.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0214.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0214.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0214.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0214.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0214.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0214.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0214.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0214.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0215.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0215.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0215.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0215.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0215.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0215.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0215.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0215.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0215.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0216.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0216.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0216.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0216.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0216.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0216.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0216.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0216.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0216.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0217.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0217.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0217.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0217.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0217.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0217.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0217.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0217.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0217.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0218.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0218.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0218.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0218.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0218.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0218.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0218.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0218.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0218.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0219.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0219.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0219.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0219.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0219.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0219.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0219.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0219.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0219.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0220.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0220.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0220.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0220.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0220.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0220.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0220.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0220.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0220.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0221.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0221.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0221.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0221.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0221.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0221.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0221.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0221.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0221.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0222.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0222.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0222.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0222.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0222.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0222.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0222.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0222.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0222.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0223.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0223.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0223.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0223.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0223.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0223.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0223.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0223.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0223.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0224.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0224.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0224.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0224.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0224.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0224.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0224.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0224.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0224.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0225.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0225.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0225.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0225.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0225.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0225.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0225.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0225.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0225.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0226.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0226.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0226.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0226.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0226.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0226.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0226.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0226.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0226.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0227.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0227.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0227.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0227.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0227.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0227.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0227.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0227.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0227.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0228.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0228.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0228.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0228.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0228.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0228.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0228.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0228.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0228.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0229.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0229.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0229.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0229.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0229.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0229.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0229.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0229.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0229.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0230.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0230.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0230.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0230.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0230.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0230.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0230.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0230.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0230.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0231.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0231.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0231.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0231.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0231.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0231.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0231.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0231.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0231.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0232.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0232.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0232.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0232.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0232.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0232.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0232.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0232.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0232.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0233.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0233.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0233.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0233.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0233.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0233.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] test Message-ID: <430F2DF4.4030804@atcorp.com> I've not been receiving or able to make submissions lately :( ~ Shawn From philippe.barthelemy at gmail.com Sat Aug 20 05:42:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Sat, 20 Aug 2005 11:42:53 -0000 Subject: [Rxtx] MacOS X : telling 'true' serial ports from 'fakes' Message-ID: Hi, I am running the latest stable of RxTx on MacOS X 10.4 Tiger. I have a question : RxTx retrieve a lot of supposedly serial ports, see below. How can I tell 'real' serial port, from the fake ( eg. bluetooth ) ones ? Is there a more elegant solution than hard-coding a RegExp matching the names of common serial adapters ? TIA, --p PS : for instance : --/dev/cu.modem --/dev/tty.Bluetooth-PDA-Sync --/dev/cu.Bluetooth-PDA-Sync --/dev/tty.barT610-SerialPort1-1 --/dev/cu.barT610-SerialPort1-1 --/dev/tty.Bluetooth-Modem --/dev/cu.Bluetooth-Modem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050820/7fa955cd/attachment-0233.html From meet_jijo at yahoo.com Wed Aug 17 02:17:38 2005 From: meet_jijo at yahoo.com (jijo vincent) Date: Wed, 17 Aug 2005 08:17:38 -0000 Subject: [Rxtx] Unable to close the port !! Message-ID: <20050817081734.93541.qmail@web8503.mail.in.yahoo.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program is hanging while trying to close the port. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is coming as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Thanks & Regards Jijo Vincent --------------------------------- Check out Yahoo! India Rakhi Special for Rakhi shopping, contests and lots more. http://in.promos.yahoo.com/rakhi/index.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050817/2cbb95e9/attachment-0233.html From philippe.barthelemy at gmail.com Fri Aug 26 01:34:53 2005 From: philippe.barthelemy at gmail.com (Philippe BARTHELEMY) Date: Fri, 26 Aug 2005 09:34:53 +0200 Subject: [Rxtx] logging ? / the simplest receive function Message-ID: Hi, I am writing a piece of code to connect the a heartbeat monitor from Polar ( http://www.heartbit.fr ). I am not receiving in my Java program what I expected ( under both Windows 2k and MacOS X (/w keyspan USA19) ) This lead me to 2 questions : - how do I enable a low level logging facility in RxTx so that I can trace what the C function do read from the port ? I modified serial.Imp.c/report(char* ) to call OutputDebugString, recompile rxtx , adding the -DDEBUG flag in the makefile. but I see nothing, neither in the Eclipse console, nor in DbgView (under windows). - I wrote a very simple receive function. Is it too simple to work ? ( it is not threaded ) *public* *int* recv(*byte*[] packet) { *int* numBytes, numBytesTotal; byte[] temp; numBytesTotal = 0; *try* { *while* (inputStream.available() > 0) { numBytes = inputStream.read(temp); System.arraycopy( temp, 0, packet,numBytesTotal , numBytes ); numBytesTotal += numBytes; Thread.sleep(1000); } } *catch* (IOException e) {} *catch* (Exception e) {} *return * numBytesTotal; } Thanks in adavce, --Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050826/557fc88b/attachment-0233.html From andy.dalton at gmail.com Sat Aug 27 21:38:07 2005 From: andy.dalton at gmail.com (Andy Dalton) Date: Sat, 27 Aug 2005 23:38:07 -0400 Subject: [Rxtx] RXTX with Linux udev symbolic links Message-ID: <9b1737410508272038435dede8@mail.gmail.com> Greetings, I'm trying to use rxtx-2.1-7pre17 for serial port interaction and I'm having a bit of a problem. The devices I'm accessing are dynamically assigned to /dev/ttyUSB[0-9][0-9]*; however, I need to access them via symbolic links (e.g. /dev/motes/M49UG00M), where 'M49UG00M' is a more consistent name that gets mapped (via udev) to the corresponding /dev/ttyUSB* node. It looks like rxtx enumerates the available ports statically, and won't consider reading something like '/dev/motes/M49UG00M'. Is there a way to access symbolic links to serials devices in this way? Thanks for your time, Andy Dalton From ealejandro101 at hotmail.com Tue Aug 2 07:26:29 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Tue, 02 Aug 2005 13:26:29 +0000 Subject: [Rxtx] Error on Windows Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050802/ee513abc/attachment-0234.html From mrp at netpages.de Tue Aug 2 07:32:25 2005 From: mrp at netpages.de (Martin Petzold) Date: Tue, 02 Aug 2005 15:32:25 +0200 Subject: [Rxtx] Using I2C Message-ID: <42EF75E9.3000807@netpages.de> Hi, i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I have installed everything correctly and my normal serial connection is working. I2C i2c = new I2C("COM6"); gives me an is not visible. Has anyone got some sample code? Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented jet? Any sample code for implementing it somehow then? thx martin From taj at www.linux.org.uk Tue Aug 2 13:56:51 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Tue, 2 Aug 2005 20:56:51 +0100 (BST) Subject: [Rxtx] Using I2C In-Reply-To: <42EF75E9.3000807@netpages.de> References: <42EF75E9.3000807@netpages.de> Message-ID: On Tue, 2 Aug 2005, Martin Petzold wrote: > Hi, > > i can't get the I2C Object of the RXTX Package (2.1.7pre17) running. I > have installed everything correctly and my normal serial connection is > working. > > I2C i2c = new I2C("COM6"); > > gives me an is not visible. > > Has anyone got some sample code? > > Or is there a dll missing: rxrxi2c.dll? Is I2C perhaps not implemented > jet? Any sample code for implementing it somehow then? > > thx > martin Hi Martin The i2c class is just there in case someone wants to work with i2c devices and has programming skills to get the i2c class working. At the moment the class only compiles. It is known to not be close to functional for i2c. My interest when I created those clases was commnicating with some sugar concentration sensors that turned out to be too complicated for a project like rxtx; a CPU was more in line for that project. At this time I do not think anyone is working on those classes. -- Trent Jarvi tjarvi at qbang.org From trevor at opecsystem.com Mon Aug 8 04:10:40 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 11:10:40 +0100 Subject: [Rxtx] Multi-port serial cards Message-ID: <001401c59c01$6e244be0$2b001eac@aries> Morning all I am building some new equipment which will use an 8 port multi-serial comms card on a linux, (Suse) platform. The software already successfully uses the RXTX package to use the existing 4 ports of the motherboard. So just a quick question, are the any gotcha's I need to worry about? Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/02bd2418/attachment-0234.html From ealejandro101 at hotmail.com Mon Aug 8 07:08:28 2005 From: ealejandro101 at hotmail.com (alejandro Escobar) Date: Mon, 08 Aug 2005 13:08:28 +0000 Subject: [Rxtx] Multi-port serial cards In-Reply-To: <001401c59c01$6e244be0$2b001eac@aries> Message-ID: An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/a5f63d8f/attachment-0234.html From ong at neomancer.net Mon Aug 8 09:57:04 2005 From: ong at neomancer.net (Juey Chong Ong) Date: Mon, 8 Aug 2005 11:57:04 -0400 Subject: [Rxtx] RXTX on Mac OS X 10.4.2 (Tiger) Message-ID: <49CF103E-6FA6-4B25-AF44-A2422281F156@neomancer.net> Hi: I'm trying out RXTX on Mac OS X 10.4.2 (Tiger). I downloaded the source and found that the MACOSX files were for an earlier version. Nevertheless, I managed to convert the old ProjectBuilder project file to an XCode 2.1 project file, removed two previously hardcoded file locations in the config and got it to compile and output the RXTXcomm.jar and librxtxSerial.lib Is there any simple demo program I can compile and use to test if things are working right? I'll contribute a sample XCode 2.1 project file once I know everything is working correctly. Thanks in advance, --jc http://www.neomancer.net From trevor at opecsystem.com Mon Aug 8 10:56:51 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 17:56:51 +0100 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <000001c59c3a$31956e00$2b001eac@aries> Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92e0a98a/attachment-0234.html From Daniel.Eisenhut at med.ge.com Mon Aug 8 12:46:07 2005 From: Daniel.Eisenhut at med.ge.com (Eisenhut, Daniel (GE Healthcare)) Date: Mon, 8 Aug 2005 13:46:07 -0500 Subject: : RE: [Rxtx] Multi-port serial cards Message-ID: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/92b64ff2/attachment-0234.html From trevor at opecsystem.com Mon Aug 8 13:37:20 2005 From: trevor at opecsystem.com (Trevor Sutton) Date: Mon, 8 Aug 2005 20:37:20 +0100 Subject: : RE: [Rxtx] Multi-port serial cards In-Reply-To: <65E50D2CD54E9649B6CAA522C3EF659105E34601@MKEMLVEM08.e2k.ad.ge.com> Message-ID: <001101c59c50$9a62cc50$2b001eac@aries> I have a really cheap, unbranded 8 port card at the moment and it does exactly the same thing. The ports come up as /dev/ttyS14, 15, 44 to 49. Unfortunately with this card when you have a look in /proc/tty/driver/serial and /ioport and /interrupts, the kernel patch seems to have made a complete hash of assigning resources. The interrupts would appear to be assigned as ttyS4 to 11, as per the very limited documentation, while the ioports as ttyS14, 15, 44 to 49. Anyway I have another 8 port card coming tomorrow, which supposed has far better documentation and verifiable operation under linux. Mmmmmm I reserve judgement until I have it here. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of Eisenhut, Daniel (GE Healthcare) Sent: 08 August 2005 19:46 To: Java RXTX discussion Subject: RE: : RE: [Rxtx] Multi-port serial cards I'm currently using an Exar 8-Port multi-serial card with RXTX without any problems. Support for this card was added as of 2.6.9. Strangely, the new ports didn't appear in sequence. Instead, the first port is 14, followed by 15, then 40-something... Look in /proc/tty/driver/serial to see where they ended up. Dan -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org]On Behalf Of Trevor Sutton Sent: Monday, August 08, 2005 11:57 AM To: rxtx at mail.electronpusher.org Subject: : RE: [Rxtx] Multi-port serial cards Dear Alejandro Thank you for your reply, unfortunately my Spanish is not very good, but I think you are saying that the ports will be /dev/ttyS1, etc. Yes, on the motherboard my application is using /dev/ttyS1 to S3. With the extra 8 serial ports I am expecting to get new comm. Ports /dev/ttyS4 to S11. I was really wondering whether anybody had any experience of a similar configuration. Are there any problems with increased interrupt latency, any know oddities with the RXTX libraries running 12 serial ports. I have had a look through the archives and have not found anything, except one mention of the Equinox 8 port serial card with Linux. It appears that problem was due to the device drivers for that card. I am reliably informed, (and I believe them :-) ), that the card arriving with me tomorrow has fully working drivers for linux. I will let you all know if it works. Trevor Sutton; Managing Director OpecSystem Limited Mobile 07768 461940 Office 01296 730110 Email Trevor at opecsystem.com www. opecsystem.com -----Original Message----- From: rxtx-bounces at mail.electronpusher.org [mailto:rxtx-bounces at mail.electronpusher.org] On Behalf Of alejandro Escobar Sent: 08 August 2005 14:08 To: rxtx at mail.electronpusher.org Subject: RE: [Rxtx] Multi-port serial cards Trevor, Debes tener en cuenta como se llaman los puertos en linux, los COMMS de la motherboard se conocen en linux como ttyS. Al instalar una tarjeta adicional se pueden llamar ttySQ1... ttySQ2... si son de este estilo debes cambiar un parametro al rxtx para que los puedas utilizar. Espero te quede claro. Alejandro Escobar. Alejandro Escobar "La fidelidad, se llama discreci?n" >From: "Trevor Sutton" >Reply-To: Java RXTX discussion >To: >Subject: [Rxtx] Multi-port serial cards >Date: Mon, 8 Aug 2005 11:10:40 +0100 > >Morning all > >I am building some new equipment which will use an 8 port multi-serial >comms card on a linux, (Suse) platform. > >The software already successfully uses the RXTX package to use the >existing 4 ports of the motherboard. So just a quick question, are the >any gotcha's I need to worry about? > > > >Trevor Sutton; >Managing Director OpecSystem Limited > >Mobile 07768 461940 >Office 01296 730110 >Email Trevor at opecsystem.com > www. opecsystem.com > > >_______________________________________________ >Rxtx mailing list >Rxtx at mail.electronpusher.org >http://www.electronpusher.org/mailman/listinfo/rxtx -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.qbang.org/pipermail/rxtx/attachments/20050808/e260890b/attachment-0234.html From jijo.vincent at gmail.com Fri Aug 19 02:24:01 2005 From: jijo.vincent at gmail.com (Jijo Vincent) Date: Fri, 19 Aug 2005 13:54:01 +0530 Subject: [Rxtx] Problems with Rxtx. in windows...urgent. Message-ID: <874101ca05081901241575617d@mail.gmail.com> Hello all, I am using Rxtx 2.0.7 pre1 release for Windows I am not able to close the port after opening it. The program control is not coming back after giving close() command. I am using the Solaris version of Sun's comm API.(Tried using windows version,but nSetOwner exception is throwing.) also,one warning is displaying as follows: WARNING: RXTX Version mismatch Jar version = RXTX-2.0-5 native lib Version = RXTX-2.0-7pre1 The linux version is working fine. How to solve it..?? Plz... Thanks & Regards Jijo Vincent From slavelle at atcorp.com Wed Aug 24 13:48:27 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Wed, 24 Aug 2005 14:48:27 -0500 Subject: [Rxtx] can't find/open javax.comm.properties In-Reply-To: <001101c59c50$9a62cc50$2b001eac@aries> References: <001101c59c50$9a62cc50$2b001eac@aries> Message-ID: <430CCF0B.7040603@atcorp.com> Hey Guys, I'm working on a new linux laptop and need to reinstall rxtx, commapi, et al. I thought I'd done so, but CommPortIdentifier.loadDriver() (line 243) reports "java.io.IOException: javax.comm: platform driver class name = null \ (Check 'driver' property in javax.comm.properties)" I'm not entirely sure what this means. The javax.comm.properties file is in java/jdk/jre/lib/ext (and I've tried it in java/jdk/jre, java/jdk/jre/lib, and java/jdk/jre/bin) and the RXTXcomm.jar resides in java/jdk/jre/lib/ext. The contents of the javax.comm.properties file is: driver=gnu.io.RXTXCommDriver These must not be correct, I'm still no linux expert... Can someone help me out?? Thanks in advance... ~ Shawn From taj at www.linux.org.uk Fri Aug 26 08:24:39 2005 From: taj at www.linux.org.uk (Trent Jarvi) Date: Fri, 26 Aug 2005 15:24:39 +0100 (BST) Subject: [Rxtx] Test of the list again. Message-ID: test -- Trent Jarvi tjarvi at qbang.org From slavelle at atcorp.com Fri Aug 26 08:57:56 2005 From: slavelle at atcorp.com (Shawn Lavelle) Date: Fri, 26 Aug 2005 09:57:56 -0500 Subject: [Rxtx] tes